package com.loy.service;

import org.springframework.context.SmartLifecycle;
import org.springframework.stereotype.Component;

@Component
public class ZhouyuLifecycle3 implements SmartLifecycle {
    @Override
    public void start() {
        System.out.println(1);
    }

    @Override
    public void stop() {
        System.out.println(2);
    }

    @Override
    public boolean isRunning() {
        return false;
    }

    @Override
    public int getPhase() {
        return 2;
    }
}
